package com.kuang.lambda;



public class CusFunTest {

    public static void main(String[] args) {
        print(e->{System.out.println(e);}, "aaa1");
        print((test)->{System.out.println(test);}, "aaa2");
        print(System.out::println, "aaa3");
        print((content) -> {
            String prefix = "x_";
            System.out.println(prefix+content);}, "bbb");

    }


    private static void print(CusFun cusFun, String content){
        cusFun.print(content);
    }
}
